package com.ysz;

import com.ysz.client.conn.ClientConn;
import com.ysz.server.DynamicGrouping;

/**
 * @ClassName Starter
 * @Description TODO
 * @Data 15:05
 * @Version 1.0
 * @Author ysz
 */
public class Starter {
    /**
     * 定义模拟客户端节点的数组
     * 为了方便看效果  采用一个客户端
     * 可以使用多客户端
     */
    //"E-2", "H-2", "D-2", "A-2", "C-4", "B-19", "D-1", "A-1", "C-1", "B-1", "C-2"
    public static String[] clientsNode = new String[]{"H-1"};

    public static void main(String[] args) {
        //客户端启动
        ClientConn clientConn = new ClientConn();
        clientConn.start();
        //动态分组启动
        DynamicGrouping dynamicGrouping = new DynamicGrouping();
        dynamicGrouping.start();
    }
}
